<html>
	<head>
		<title>
		Glyph Manual 7-14-11
		</title>
		
		<link rel="stylesheet" type="text/css" href="style.css" />
	</head>
	
	<body>
		<div id="banner">
			<center>
				<img src="glyphlogo.png" />
			</center>
		</div>
		
		<div id="body">
			<div id="tableofcontents">
				<h3>Table of Contents:</h3>
				<ol>
					<li><a href="#intro">Introduction</a></li>
					<li><a href="#mechanics">Gameplay Mechanics</a></li>
						<ul>
							<li><a href="#phases">Turn Phases</a></li>
							<li><a href="#statuseffects">Status Effects</a></li>
						</ul>
					<li><a href="#combiningcards">Combining Cards</a></li>
					<li><a href="#cardList">Card List</a></li>
						<ul>
							<li>T1</li>
							<li>T2</li>
							<li>T3</li>
							<li>T4</li>
							<li>T5</li>
						</ul>
					<li>Design</li>
						<ul>
							<li>UML</li>
							<li>Sequence</li>
							<li>Psuedo Code</li>
						<ul>
				</ol>
			</div>
			
			<div id="intro">
				<h3>1. Introduction</h3>
				<p>Glyph is a virtual card game designed for web browsers. The game pits players against an AI
				   opponent in a one vs. one match. The objective of the game is to reduce your opponent's life to
				   zero; this is achieved by playing cards with different effects.</p> 
				<p>Following the principles of the philosopher Aristotle, 
				   there are five types of basic (Tier 1) Glyphs: Fire, Water, 
				   Earth, Air, and Aether.  Aether can further be divided 
				   into Life and Death. These elements can be further represented 
				   by the specific roles each one plays in the game: 
				   Fire is associated with damage; Water is associated with 
				   cleansing; Earth is associated with protection; Air is associated 
				   with force; Life is associated with benificial effects and Death is 
				   associated with detrimental effects.</p>
			</div>
			
			<div id="mechanics">
				<h3>2. Gameplay Mechanics</h3>
				<p>Each player starts the game with six cards in his/her hand. On the first turn of
				   the game, each player rolls a d10. Whichever player rolls higher takes the first
				   turn. The player who plays first does not draw a card on their first turn, but on
				   every consecutive turn thereafter. Once the first turn player has been decided,
				   the first turn of the game commences.</p>
				   
				<div id="phases">
					<h4>2.a Turn Phases</h4>
					<ol>
						<li>Begin Turn</li>
						<li>Assign Negative Effects Phase</li>
							<ul>
								<li>Assign status' damage</li>
								<li>Assign status' life loss</li>
							</ul>
						<li>Draw Phase</li>
							<ul>
								<li>Draw cards for the turn</li>
							</ul>
						<li>Spirit Phase</li>
							<ul>
								<li>Generate Spirit for the turn</li>
							</ul>
						<li>Main Phase</li>
							<ul>
								<li>Play cards</li>
								<li>Combine cards</li>
							</ul>
						<li>Assign Positive Effects Phase</li>
							<ul>
								<li>Assign status' life gain </li>
							</ul>
						<li>Decay Effects Phase</li>
							<ul>
								<li>Removes one turn from each effects' length</li>
							</ul>
						<li>End Turn</li>
					</ol>
				</div>
				
				<div id="statuseffects">
					<h4>2.b Status Effects</h4>
					<p>Most Glyphs apply 'status effects' to either the caster or his/her opponent. 
					   These effects can be either harmful, beneficial, or both. Status effects provide 
					   an easy way of describing what each Glyph does, and also serve as a user friendly 
					   way to display exactly what is happening in the game. Different Glyphs apply different 
					   status effects for different lengths of time. Status effects are constant, which means 
					   that each effect will not change through the course of the game. (i.e. 'BURNING' will 
					   always deal a set amount of damage every turn. How long the player is BURNING, 
					   however, is determined by a card.)</p>
					<p>Status effects are not cumulative; any status effect is overwritten by the same type. 
					  (i.e. If a player is already 'BURNING' for 3 turns and his/her opponent uses a Glyph which 
					  applies the 'BURNING' status effect for 2 turns, the player would then be 'BURNING' for 2 turns: 
					  not 5 turns!)</p>
					<dl>
					<dt>BLEEDING</dt>
					<dd>-- Deals X damage each turn while BLEEDING</dd>
					<br>
					<dt>BLESSED</dt>
					<dd>-- Gain 5 Blood each turn while BLESSED (A player may not be both BLESSED and CURSED at once.)<dd>
					<br>
					<dt>BLINDED</dt>
					<dd>-- +10% to Glyph combination failure while BLINDED</dd>
					<br>
					<dt>BURNING</dt>
					<dd>-- Deals 5 damage each turn while BURNING</dd>
					<br>
					<dt>CURSED</dt>
					<dd>-- Lose 5 Blood each turn while CURSED (A player may not be both BLESSED and CURSED at once.)</dd>
					<br>
					<dt>DAZED</dt>
					<dd>-- Skip Draw Phase, Spirit Phase, and Main Phase while DAZED</dd>
					<br>
					<dt>ENLIGHTENED</dt>
					<dd>-- Gain 1 additional Spirit per Spirit Phase while ENLIGHTENED (A player may not be both ENLIGHTENED and VEXED at once.)</dd>
					<br>
					<dt>STAGGERED</dt>
					<dd>-- Draw 1 card max per turn while STAGGERED</dd>
					<br>
					<dt>POISONED</dt>
					<dd>-- -50% all incoming healing while POISONED</dd>
					<br>
					<dt>STRENGTHENED</dt>
					<dd>-- Double all outgoing Earth damage while STRENGTHENED (A player may not be both STRENGTHENED and WEAKENED at once.)</dd>
					<br>
					<dt>STEADFAST</dt>
					<dd>-- Immunity to DAZED while STEADFAST</dd>
					<dd>-- Immunity to STAGGERED while STEADFAST</dd>
					<br>
					<dt>VEXED</dt>
					<dd>-- Lose 1 Spirit per Spirit Phase while VEXED, to a minimum of 1 Spirit. (A player may not be both ENLIGHTENED and VEXED at once.)</dd>
					<br>
					<dt>WARDED</dt>
					<dd>-- Negate all incoming Fire damage while WARDED (Will only effect incoming damage, not loss of life!)</dd>
					<br>
					<dt>WEAKENED</dt>
					<dd>-- Negate all outgoing Earth damage while WEAKENED(A player may not be both STRENGTHENED and WEAKENED at once.)</dd>
					</dl>
				</div>
			</div>
			
			<div id="combiningcards">
				<h3>3. Combining Cards</h3>
				<p>This section contains all of the information about combining different cards.</p>
			</div>
			
			<div id="cardList">
				<h3>4. Card List</h3>
				<p>This section contains all of the cards in the game.</p>
				<ol>
					<li>Tier 1:</li>
						<ul>
							<li>Fire</li>
								<ul>
									<li>Opponent takes 5 Fire damage</li>
								</ul>
							<li>Water</li>
								<ul>
									<li>Opponent loses 1 Glyph</li>
								</ul>
							<li>Wind</li>
								<ul>
									<li>Caster gains 2 Glyphs</li>
								</ul>
							<li>Earth</li>
								<ul>
									<li>Opponent takes 5 Earth damage</li>
								</ul>
							<li>Life</li>
								<ul>
									<li>Caster gains 5 Blood</li>
								</ul>
							<li>Death</li>
								<ul>
									<li>Opponent loses 5 Blood</li>
								</ul>
						</ul>
						<br>
					<li>Tier 2: (10% combine failure, 1 Ink cost, 2 Spirit cost)</li>
						<ul>
							<li>Immolation (Fire+Fire)</li>
								<ul>
									<li>Opponent is BURNING(3)</li>
								</ul>
							<li>Vigor (Life+Life)</li>
								<ul>
									<li>Caster is BLESSED(3)</li>
								</ul>
							<li>Demise (Death+Death)</li>
								<ul>
									<li>Opponent is CURSED(3)</li>
								</ul>
							<li>Stone (Earth+Earth)</li>
								<ul>
									<li>Caster is STEADFAST(3)</li>
								</ul>
							<li>Thunder (Wind+Wind)</li>
								<ul>
									<li>Opponent is STAGGERED(3)</li>
								</ul>
							<li>Current (Water+Water)</li>
								<ul>
									<li>Opponent loses STEADFAST</li>
								</ul>
							<li>Frost(Water+Wind)</li>
								<ul>
									<li>Caster loses BURNING</li>
								</ul>
							<li>Lightning (Fire+Wind)</li>
								<ul>
									<li>Opponent is DAZED(1)</li>
								</ul>
							<li>Clarity (Life+Wind)</li>
								<ul>
									<li>Caster loses BLINDED</li>
								</ul>
							<li>Ash (Earth+Fire)</li>
								<ul>
									<li>Opponent is BLINDED(3)</li>
								</ul>
							<li>Balance (Life+Death)</li>
								<ul>
									<li>Opponent loses 5 Blood</li>
									<li>Caster gains 5 Blood</li>
								</ul>
							<li>Decay (Earth+Death)</li>
								<ul>
									<li>Opponent loses WARDED</li>
								</ul>
							<li>Poison (Water+Death)</li>
								<ul>
									<li>Opponent is POISONED(3)</li>
								</ul>
							<li>Combustion (Fire+Death)</li>
								<ul>
									<li>Opponent takes 10 damage</li>
								</ul>
							<li>Preservation (Earth+Life)</li>
								<ul>
									<li>Caster gains WARDED(3)</li>
								</ul>
							<li>Cleansing (Life+Water)</li>
								<ul>
									<li>Caster loses POISONED</li>
								</ul>
						</ul>
						<br>
					<li>Tier 3: (20% combine failure, 2 Ink cost, 3 Spirit cost)</li>
						<ul>
							<li>Ruin (Death+Demise)</li>
								<ul>
									<li>Opponent is VEXED(3)</li>
								</ul>
							<li>Fortune (Life+Vigor)</li>
								<ul>
									<li>Caster is ENLIGHTENED(3)</li>
								</ul>
							<li>Inferno (Fire+Immolation)</li>
								<ul>
									<li>Opponent is BURNING(3)</li>
									<li>Opponent takes 5 damage</li>
								</ul>
						</ul>
						<br>
					<li>Tier 4: (30% combine failure, 3 Ink cost, 4 Spirit cost)</li>
						<ul>
							<li>Despair (Demise+Demise)</li>
									<ul>
										<li>Opponent is CURSED(3)</li>
										<li>Opponent is VEXED(3)</li>
									</ul>
							<li>Elation (Vigor+Vigor)</li>
									<ul>
										<li>Caster is BLESSED(3)</li>
										<li>Caster ENLIGHTENED(3)</li>
									</ul>
							<li>Harmony (Balance+Balance)</li>
									<ul>
										<li>Opponent is CURSED(3)</li>
										<li>Caster is BLESSED(3)</li>
									</ul>
							<li>Tempest (Thunder+Lightning)</li>
								<ul>
									<li>Opponent is BLINDED(3)</li>
									<li>Opponent is STAGGERED(3)</li>
									<li>Opponent is DAZED(1)</li>
								</ul>
						</ul>
						<br>
					<li>Tier 5: (40% combine failure, 4 Ink cost, 5 Spirit cost)</li>
						<ul>
							<li>Insanity (Demise+Ruin)</li>
								<ul>
									<li>Opponent is CURSED(3)</li>
									<li>Opponent is VEXED(3)</li>
									<li>Opponent is POISONED(3)</li>
									<li>Opponent is BLINDED(3)</li>
								</ul>
							<li>Serenity (Vigor+Fortune)</li>
								<ul>
									<li>Caster is BLESSED(3)</li>
									<li>Caster is ENLIGHTENED(3)</li>
									<li>Caster is WARDED(3)</li>
									<li>Caster is STEADFAST(3)</li>
								</ul>
						</ul>
				</ol>
			</div>
			
			<div id="Design">
				<h3>5. Design</h3>
				<p>This section contains all design documentation for Glyph.</p>
				<div id="uml">
					<h4>5.a UML</h4>
					<p>This subsection contains all the UML diagram documentation.</p>
				</div>
				
				<div id="sequence">
					<h4>5.b Sequence</h4>
					<p>This subsection contains all the sequence diagram documentation.</p>
					<h5>Game Start</h5>
					<img src="./img/sequence/gamestart.png" />
				</div>
			</div>
		</div>
	</body>
</html>